#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

void print_arr1(int arr[3][5], int row, int col)
{
	int i = 0;
	for (i = 0; i < row; i++)
	{
		int j = 0;
		for (j = 0; j < col; j++)
		{
			printf("%d ", arr[i][j]);
		}
		printf("\n");
	}
}
void print_arr2(int (*arr)[5], int row, int col)
{
	int i = 0;
	for (i = 0; i < row; i++)
	{
		int j = 0;
		for (j = 0; j < col; j++)
		{
			printf("%d ", arr[i][j]);
		}
		printf("\n");
	}
}
int main()
{
	/*char* ch = "Regain";
	char arr[] = "believe";
	const char* pst = "excuse me";
	printf("%s", pst);*/
	//char str1[] = "hello, bit";
	//char str2[] = "hello, bit";
	//char str0 = "hello, bit";
	//char str = "hello, bit";
	//const char* str3 = "hello, bit";
	//const char* str4 = "hello, bit";
	//int a = 1;
	//int b = 1;
	//if (1 == 2)
	//{
	//	printf("str1 and str2 are same\n");
	//}
	//else
	//{
	//	printf("str1 and str2 are not same\n");
	//}
	//if (str1 == str2)
	//{
	//	printf("str1 and str2 are same\n");
	//}
	//else
	//{
	//	printf("str1 and str2 are not same\n");
	//}
	//if (str0 == str)
	//{
	//	printf("str0 and str are same\n");
	//}
	//else
	//{
	//	printf("str0 and str are not same\n");
	//}
	//if (str3 == str4)
	//{
	//	printf("str3 and str4 are same\n");

	//}
	//else
	//{
	//	printf("str3 and str4 are not same\n");
	//}
	//int arr1[] = { 0 };
	//int(*p) = &arr1;
	//int(*p)[] = {0};
	/*int arr[10] = { 0 };
	printf("arr=%p\n", arr);
	printf("&arr=%p\n", &arr);
	printf("arr=%p\n", arr+1);
	printf("&arr=%p\n", &arr+1);*/
	/*int arr[10] = { 0 };
	int(*p)[10] = &arr;*/
	int arr[3][5] = { 1,2,3,4,5,6,7,8,9,10 };
	print_arr1(arr, 3, 5);
	print_arr2(arr, 3, 5);
	return 0;
}